package com.zy.entity;

/**
 * 用户实体类
 * @author 张宇
 * @date 2021/7/26 20:43
 */
public class User
{

    private Integer id;//用户id

    private String username;//用户姓名

    private String password;//用户密码

    private String headImg;//头像

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public User() {
    }

    public User(Integer id, String username, String password, String headImg) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.headImg = headImg;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", headImg='" + headImg + '\'' +
                '}';
    }

}
